{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c60c0c55",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "用户名称：杨洋 \n",
      "密码：19910909\n",
      "您是可爱的普通用户～\n",
      "尊敬的用户，您今天还有 5 次输入的机会～\n",
      "今天星期几（请输入0-6的数字）：2\n",
      "请输入正确的星期数～\n",
      "尊敬的用户，您今天还有 4 次输入的机会～\n",
      "今天星期几（请输入0-6的数字）：3\n",
      "请输入正确的星期数～\n",
      "尊敬的用户，您今天还有 3 次输入的机会～\n",
      "今天星期几（请输入0-6的数字）：4\n",
      "今天星期5\n",
      "要上的课如下：\n",
      "Illustrator软件应用\n",
      "尊敬的用户，您今天还有 2 次输入的机会～\n",
      "今天星期几（请输入0-6的数字）：5\n",
      "请输入正确的星期数～\n",
      "尊敬的用户，您今天还有 1 次输入的机会～\n",
      "今天星期几（请输入0-6的数字）：4\n",
      "今天星期5\n",
      "要上的课如下：\n",
      "Illustrator软件应用\n",
      "尊敬的用户，非会员一天只能输入5次哦～\n",
      "尊敬的用户，您今天还有 -1 次输入的机会～\n"
     ]
    }
   ],
   "source": [
    "user_data = \"李许娣\"\n",
    "user_password = \"lxd123\" # 会员账号\n",
    "user_name = input(\"用户名称：\")\n",
    "password = input(\"密码：\")\n",
    "\n",
    "if user_name == user_data:\n",
    "    if password == user_password:\n",
    "        print(\"您是尊贵的会员用户～\")\n",
    "        count = 11\n",
    "        while True:\n",
    "            count -= 1\n",
    "            if count == 0:\n",
    "                print(\"尊贵的会员，您一天能输入10次哦～\")\n",
    "            else:\n",
    "                print(\"尊贵的会员，您今天还有\", count, \"次输入的机会~\")\n",
    "\n",
    "                week_time = int(input(\"今天星期几（请输入0-6的数字）：\"))\n",
    "                import datetime\n",
    "                time = datetime.datetime.today().weekday()\n",
    "\n",
    "                if week_time == int(time):\n",
    "                    answer = \"今天星期{}\".format((week_time) + 1)\n",
    "                    print(answer)\n",
    "                    print(\"要上的课如下：\")\n",
    "                    if week_time == 0:\n",
    "                        print(\"星期一早上没课，下午有两节课\")\n",
    "                        print(\"8-10Python语言\")\n",
    "                        print(\"12-13大学英语\")\n",
    "\n",
    "                    elif week_time == 1:\n",
    "                        print(\"毛概实践、H5、定向越野、毛概理论\")\n",
    "                    elif week_time == 2:\n",
    "                        print(\"大学英语、创业实践\")\n",
    "                    elif week_time == 3:\n",
    "                        print(\"Python数据可视化\")\n",
    "                    elif week_time == 4:\n",
    "                        print(\"Illustrator软件应用\")\n",
    "                    else:\n",
    "                        print(\"快乐周末！\")\n",
    "                        print(\"the end\")\n",
    "                else:\n",
    "                    print(\"请输入正确的星期数～\")\n",
    "\n",
    "\n",
    "\n",
    "\n",
    "else:\n",
    "    print(\"您是可爱的普通用户～\")\n",
    "    count = 6\n",
    "    while True:\n",
    "        count -= 1\n",
    "        if count == 0:\n",
    "            print(\"尊敬的用户，非会员一天只能输入5次哦～\")\n",
    "        else:\n",
    "            print(\"尊敬的用户，您今天还有\", count, \"次输入的机会～\")\n",
    "            week_time = int(input(\"今天星期几（请输入0-6的数字）：\"))\n",
    "            import datetime\n",
    "            time = datetime.datetime.today().weekday()\n",
    "\n",
    "            if week_time == int(time):\n",
    "                answer = \"今天星期{}\".format((week_time) + 1)\n",
    "                print(answer)\n",
    "                print(\"要上的课如下：\")\n",
    "                if week_time == 0:\n",
    "                    print(\"星期一早上没课，下午有两节课\")\n",
    "                    print(\"8-10Python语言\")\n",
    "                    print(\"12-13大学英语\")\n",
    "\n",
    "                elif week_time == 1:\n",
    "                    print(\"毛概实践、H5、定向越野、毛概理论\")\n",
    "                elif week_time == 2:\n",
    "                    print(\"大学英语、创业实践\")\n",
    "                elif week_time == 3:\n",
    "                    print(\"Python数据可视化\")\n",
    "                elif week_time == 4:\n",
    "                    print(\"Illustrator软件应用\")\n",
    "                else:\n",
    "                    print(\"快乐周末！\")\n",
    "                    print(\"the end\")\n",
    "            else:\n",
    "                print(\"请输入正确的星期数～\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "3e99d354",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
